import React from "react";
import View from "../base/View";
import defaultData from "./data";
import { WeaTextarea } from "ecCom";

export default class TextareaView extends View {
  renderContent(data, value) {
    return (
      <WeaTextarea
        value={value}
        minRows={3}
        onBlur={this.handleValueChange}
      />
    );
  }
}

TextareaView.defaultProps = {
  data: defaultData,
  value: ''
};